package com.yaorange.certificate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.certificate.mapper.YtjPosMapper;
import com.yaorange.certificate.domain.YtjPos;
import com.yaorange.certificate.service.IYtjPosService;

/**
 * 一体机服务点Service业务层处理
 */
@Service
public class YtjPosServiceImpl implements IYtjPosService {
    @Autowired
    private YtjPosMapper ytjPosMapper;

    /**
     * 查询一体机服务点列表
     */
    @Override
    public List<YtjPos> selectYtjPosList(YtjPos ytjPos) {
        return ytjPosMapper.selectYtjPosList(ytjPos);
    }

    /**
     * 查询一体机服务点信息
     */
    @Override
    public YtjPos selectYtjPosById(Long id) {
        return ytjPosMapper.selectYtjPosById(id);
    }

    /**
     * 新增一体机服务点
     */
    @Override
    public int insertYtjPos(YtjPos ytjPos) {
        return ytjPosMapper.insertYtjPos(ytjPos);
    }

    /**
     * 修改一体机服务点
     */
    @Override
    public int updateYtjPos(YtjPos ytjPos) {
        return ytjPosMapper.updateYtjPos(ytjPos);
    }

    /**
     * 批量删除一体机服务点
     */
    @Override
    public int deleteYtjPosByIds(Long[] ids) {
        return ytjPosMapper.deleteYtjPosByIds(ids);
    }

    /**
     * 删除一体机服务点信息
     */
    @Override
    public int deleteYtjPosById(Long id) {
        return ytjPosMapper.deleteYtjPosById(id);
    }
}